"""
    实体对象及赋值
"""
import json

class PC:
    cpu:str
    hdd:str
    gpu:str
    memory: str

pc=PC()
pc.memory = 'SAMSUNG DD5'
pc.cpu = 'AMD ryzen 9900'
pc.hdd = 'WD 120GB'
pc.gpu = 'Intel'

print(json.dumps(pc.__dict__, ensure_ascii=False))